﻿using BJoin.Application.BObject;
using BJoin.Common;
using BJoin.MicroSVC.Sample.DataContract.Dtos;
using FluentValidation;

namespace BJoin.MicroSVC.Sample.Webapi.ParamValidations
{
    public partial class FileExtValidation
    {
        partial void ExFileExtValidation()
        {
            //extend in here
        }
    }
    public partial class FileAddDtoValidation
    {
        partial void ExFileAddDtoValidation()
        {
            RuleFor(x => x.Code).NotEmpty().WithMessage(string.Format(EnumHelper.GetEnumDescription(EnumMessage.NotEmpty),nameof(FileAddDto.Code)));
            RuleFor(x => x.Name).NotEmpty().WithMessage(string.Format(EnumHelper.GetEnumDescription(EnumMessage.NotEmpty), nameof(FileAddDto.Name)));
        }
    }
    public partial class FileUpdateDtoValidation
    {
        partial void ExFileUpdateDtoValidation()
        {
            //extend in here
        }
    }
    public partial class FileFilterValidation
    {
        partial void ExFileFilterValidation()
        {
            //extend in here
        }
    }
}
